FROM node:10-alpine
# 指定环境变量
ENV PROJECT_ENV production
# 指定容器工作目录
WORKDIR /dist
# 把项目打包文件复制到容器的/dist目录下
COPY ./build /dist
RUN  npm config set registry https://registry.npm.taobao.org/ && \
      npm install -g http-server
EXPOSE 80
CMD http-server . -p 80 --proxy http://localhost?